package com.syh.bishe.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 *登录用户类
 * </p>
 *
 * @author syh
 * @since 2024-06-30
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false) //Lombok插件生成equals和hashCode方法时不要调用父类的这两个方法
@Accessors(chain = true) //Lombok插件生成setter/getter方法时使用链式编程
@TableName("user")
@Schema(description = "用户实体")
public class User {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String username;
    private String password;
    private String email;
    private String company;
    @TableField(exist = false)
    private String token;
    private Integer lockUser;

}
